//导入ReactDOM
import ReactDOM  from "react-dom/client";
//通过JSX的方式创建React元素
const title=<div>   
    <h1>个人简介</h1>
    <ul>
        <li>姓名:Giles</li>
        <li>年龄:38</li>
        <li>爱好:学习</li>
    </ul>
</div>
const root=ReactDOM.createRoot(document.querySelector('#root'))
root.render(title)